package com.wxy.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.example.model.user;

public class jdbcMain {
	public static void main(String[] args) {
		ApplicationContext applicationContext=new ClassPathXmlApplicationContext("jdbcapplication.xml");
		jdbcImpl jdbcImpl=(com.wxy.service.jdbcImpl) applicationContext.getBean("jdbcImpl");
		List<user> list=new ArrayList<user>();
		list=jdbcImpl.findAll();
		for (user user : list) {
			System.out.println(user);
		}
	}
}
